<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'form/fields/text/form_field_text_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/select/form_field_select_semidynamic_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/select/form_field_select_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/checkbox/form_field_checkbox_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/integer/form_field_integer_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class VPage_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_path = $form->get_field('path');
		$f_path_view = new Form_Field_Text_View($form->get_name().'_'.$f_path->get_name(), $f_path);
		$this->add_field_view('path', $f_path_view);

		$f_template = $form->get_field('template');
		$f_template_view = new Form_Field_Select_Semidynamic_View($form->get_name().'_'.$f_template->get_name(), $f_template);
		$this->add_field_view('template', $f_template_view);

		$f_transliterate = $form->get_field('transliterate');
		$f_transliterate_view = new Form_Field_Checkbox_View($form->get_name().'_'.$f_transliterate->get_name(), $f_transliterate);
		$this->add_field_view('transliterate', $f_transliterate_view);
	}
}